package com.hbue.springboot.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hbue.springboot.pojo.TbCustomer;
import com.hbue.springboot.utils.QueryParams;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface ManageCustomerService {
    List<TbCustomer> getAllCustomers();
    int addCustomer(TbCustomer customer);
    int deleteCustomer(int id);
    int updateCustomer(TbCustomer customer);
    List<TbCustomer> getCustomerByName(String customerName);
    IPage<TbCustomer> listCustomer(QueryParams queryParams);
}
